/*
 * @Author: your name
 * @Date: 2021-03-15 15:04:13
 * @LastEditTime: 2021-03-15 18:22:59
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \adminc:\Users\dell\Desktop\react (1)\my-app\src\view\login\login.jsx
 */
import React from 'react'
class Login extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      list: [1, 2, 3, 4],
      label: "南京南京"
    }
    console.log(this.props.location)

  }
  jumpPage = (path, oo) => {
    console.log(path, ';456', oo)
  }
  render() {
    let kkp = this.state.list;
    return (
      kkp.map((item, index) => {
        return <h1 key={item} onClick={() => { this.jumpPage(item, index) }}>{`${item}***${this.state.label}****${index}`}</h1>
      })
    )
  }
}
export default Login;